<template>
  <div>
    <div class="header">
      <span>{{ title }}</span>
      <span class="el-icon-warning-outline" />
    </div>
    <div class="content">{{ count }}</div>
    <div class="charts">
      <slot name="charts" />
    </div>
    <div class="footer">
      <slot name="footer" />
    </div>
  </div>
</template>

<script>
export default {
  name: 'Detail',
  props: ['title', 'count']
}
</script>

<style>
.header {
  display: flex;
  justify-content: space-between;
  color: #838383;
}
.content {
  font-size: 30px;
  padding: 10px 0;
}
.charts {
  height: 40px;
}
.footer {
  border-top: 1px solid #e9dede;
  padding-top:10px;

}
</style>
